

<div class="pageContent">
    <form method="post" action="<?=$this->uri->uri_string()?>" class="pageForm required-validate" onsubmit="return validateCallback(this, navTabAjaxDone);">
    <input value="OK" name="submit" type="hidden"/>
        <div class="pageFormContent" layoutH="56">
            <dl>
                <dt>分类名称：</dt>
                <dd><input class="required" value="<?=$post['cateName']?>" name="cateName" type="text" size="30" /></dd>
            </dl>
            <dl>
                <dt>是否启用：</dt>
                <dd>
                    <input type="radio" name="display" value="1" <?php if ($post['display'] == 1){echo 'checked';}?> />显示 
                    <input type="radio" name="display" value="0" <?php if ($post['display'] == 0){echo 'checked';}?> />隐藏
                </dd>
            </dl>
            <dl>
                <dt>选择父分类：</dt>
                <dd>
                    <select name="fatherId" class="required combox"><?php echo $option_str; ?></select>
                </dd>
            </dl>

            <dl>
                <dt>分类排序：</dt>
                <dd><input class="required" placeholder="菜谱归类,关键字 逗号隔开" value="<?=$post['sort']?>" name="sort" type="text" size="30" /></dd>
            </dl>

            <dl class="nowrap">
                <dt>分类类型：</dt>
                <dd>
                    <input type="radio" name="ctype" value="3" <?php if ($post['ctype'] == 3){echo 'checked';}?> />健康
                    <input type="radio" name="ctype" value="2" <?php if ($post['ctype'] == 2){echo 'checked';}?> />信息
                    <input type="radio" name="ctype" value="1" <?php if ($post['ctype'] == 1){echo 'checked';}?> />文章 
                    <input type="radio" name="ctype" value="0" <?php if ($post['ctype'] == 0){echo 'checked';}?> />食材
                </dd>
            </dl>
            <dl class="nowrap">
                <dt>分类介绍：</dt>
                <dd><textarea cols="75" rows="5" name="content"><?=$post['content']?></textarea></dd>
            </dl>
        </div>
        <div class="formBar">
            <ul>
                <li><div class="buttonActive"><div class="buttonContent"><button type="submit">保存</button></div></div></li>
                <li><div class="button"><div class="buttonContent"><button type="button" class="close">取消</button></div></div></li>
            </ul>
        </div>
    </form>
</div>